package com.sprucetec.live.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * @ClassName GuavaTateLimeter
 * @Description:
 * @Author Kenny
 * @Date 2020/4/23
 **/
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface GuavaTateLimeter {

    // 每秒限制并发数
    double limit() default Double.MAX_VALUE;

    // 获取令牌超时时间 单位/秒
    int timeOut() default  Integer.MAX_VALUE;
}
